• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

CC++ 프로그램

문자열이 회문인지 아닌지를 판단합니다.

#include using namespace std; #include int fun(char *p) { int len=strlen(p)-1; char *q=p+len;//指向末尾 if(!p) return -1;//为空时,返回-1; while(pq(偶数)时停止),先忽略下面的代码。 { if((*p++)!=(*q--))//只要有一个不符合,就返回0; return 0; } return 1;//此时说明...

CC++ 프로그램구직 필기시험 문제

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more